package com.tansun.easycare.rule.monitor.entity;

import com.tansun.easycare.rule.common.entity.RuleBaseEntity;

import java.util.Date;

/**
 * 规则调用次数统计表
 * rule_monitor_info
 */
public class RuleMonitorInfo extends RuleBaseEntity<RuleMonitorInfo> {
    //项目编码
    private String projectCode;
    //调用编码
    private String enterpoint;
    //调用次数
    private Integer count;
    //约定的变量
    private String finalResult;
    //统计异常数量的值
    private Integer exeCount;

    //统计约定变量的值
    private Integer exeFinalCount;

    public Integer getExeCount() {
        return exeCount;
    }

    public void setExeCount(Integer exeCount) {
        this.exeCount = exeCount;
    }

    public String getProjectCode() {
        return projectCode;
    }

    public void setProjectCode(String projectCode) {
        this.projectCode = projectCode;
    }

    public String getEnterpoint() {
        return enterpoint;
    }

    public void setEnterpoint(String enterpoint) {
        this.enterpoint = enterpoint;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getFinalResult() {
        return finalResult;
    }

    public void setFinalResult(String finalResult) {
        this.finalResult = finalResult;
    }

    public Integer getExeFinalCount() {
        return exeFinalCount;
    }

    public void setExeFinalCount(Integer exeFinalCount) {
        this.exeFinalCount = exeFinalCount;
    }

    @Override
    public Date getCreateDate() {
        if(createDate == null){
            return new Date();
        }
        return super.getCreateDate();
    }
}
